
package com.kugou.game.sdk.statistics;

import com.kugou.framework.utils.UrlEncodeUtil;

import android.content.Context;

import java.util.HashMap;

/**
 * 描述:取消支付或支付错误
 *
 * @author jerryliu
 * @since 2015年11月17日 下午3:24:32
 */
public class StatCancelRechargeTask extends AbsStatisticsTask {

    private int statid, optype, paytype, paymoney;

    private String orderid, errorlog;

    public StatCancelRechargeTask(Context context, int statid, int optype, int paytype,
            int paymoney, String orderid, String errorlog) {
        super(context);
        this.statid = statid;
        this.optype = optype;
        this.paytype = paytype;
        this.paymoney = paymoney;
        this.orderid = orderid;
        this.errorlog = errorlog;
    }

    @Override
    public void initParams(HashMap<String, String> params) {
        params.put("statid", statid + "");
        params.put("optype", optype + "");
        params.put("paytype", paytype + "");
        params.put("paymoney", paymoney + "");
        params.put("orderid", UrlEncodeUtil.encode(orderid, "utf-8"));
        params.put("errorlog", UrlEncodeUtil.encode(errorlog, "utf-8"));
    }
}
